home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / recode.lha / recode-3.2.4 / asc8asc7.c < prev    next >
C/C++ Source or Header  |  1992-08-19  |  1KB  |  33 lines

  1. /* Conversion of files between different charsets and usages.
  2.    Copyright (C) 1990 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1988.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful, but
  11.    WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.    General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. #define STEP    ascii8_ascii7
  21. #include <stdio.h>
  22. #include "common.h"
  23.  
  24. void
  25. STEP (FILE *input_file, FILE *output_file)
  26. {
  27.   int input_char;        /* current character */
  28.  
  29.   while ((input_char = getc (input_file)) != EOF)
  30.     if ((input_char & 0200) == 0)
  31.       putc (input_char, output_file);
  32. }
  33.